<template>
	<view class="u-wrap">
		<view class="u-search-box">
			<view class="u-search-inner">
				<u-icon name="search" color="#909399" :size="28"></u-icon>
				<text class="u-search-text">搜索您想学习的技术栈</text>
			</view>
		</view>
		<view class="container">
			<KCategory :tabbar="categorys"></KCategory>
		</view>
	</view>
</template>

<script>
	import KCategory from '@/components/K-Category.vue'
import data from '@/common/data.js';
export default {
	components: {
		KCategory
	},
	data() {
		return {
			categorys: data.categorys
		};
	},
	methods: {}
};
</script>

<style lang="scss" scoped>
.u-wrap {
	height: calc(100vh);
	/* #ifdef H5 */
	height: calc(100vh - var(--window-top) - var(--window-bottom));
	/* #endif */
	display: flex;
	flex-direction: column;
}

.u-search-box {
	padding: 18rpx 30rpx;
}

.container {
	flex: 1;
	overflow: hidden;
}

.u-search-inner {
	background-color: rgb(234, 234, 234);
	border-radius: 100rpx;
	display: flex;
	align-items: center;
	padding: 10rpx 16rpx;
}

.u-search-text {
	font-size: 26rpx;
	color: $u-tips-color;
	margin-left: 10rpx;
}
</style>
